<?php
namespace App\Query;

use App\Model\MallShop;
use App\Query\Traits\UserTrait;

class MallShopQuery extends \HyperfStore\Query
{
    use UserTrait;
    
    // 构建模型
    protected static function build()
    {
        return MallShop::latest();
    }
    
    // 渴望加载
    protected static function with()
    {
        return ['user'];
    }
}